package xyz.liuyuhe.StudySpring.ch8.beannameautoproxy;

import org.springframework.context.support.ClassPathXmlApplicationContext;


public class ProxyFactoryMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                "classpath*:ch8/beannameautoproxy/Bean.xml");
        UserService us = context.getBean("userServiceImpl", UserService.class);
        us.updateUser();
        context.close();
    }
}
